<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <!--<form action='<?= site_url('message/attribute/flexigrid') ?>' method="post">
                <div class="queryForm"><div style="margin-top:10px;"><?= translate('DBPLAYER_ROLE_NAME') ?>:
                <input id="rolename" name="rolename" type="text" /><input type="submit" value="查询"/></div></div>
        </form>
        -->
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('dbplayer/attribute/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('DBPLAYER_NAME') ?>', name: 'name', width: '100'},
                        {display: '<?= translate('DBPLAYER_ROLEID') ?>', name: '_id', width: '100', iskey: true},
                        {display: '<?= translate('DBPLAYER_ACCOUNTID') ?>', name: 'accountid', width: '100', process: formatSearch},
//                        {display: '<?//= translate('DBPLAYER_PROFESSION') ?>//', name: 'profession', width: '100', process: formatSearch},
//                        {display: '<?//= translate('DBPLAYER_GRAVATAR') ?>//', name: 'gravatar', width: '100', hide: true},
                        {display: '<?= translate('DBPLAYER_LEVEL') ?>', name: 'level', width: '100', process: formatSearch},
//                        {display: '<?//= translate('DBPLAYER_TIREDVALUE') ?>//', name: 'tiredvalue', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_HONOURVALUE') ?>//', name: 'honourvalue', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_GLORYVALUE') ?>//', name: 'gloryvalue', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_PRESTIGE') ?>//', name: 'prestige', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_ACCOMPLISHMENT') ?>//', name: 'accomplishment', width: '100'},
                        {display: '<?= translate('DBPLAYER_FIGHTVALUE') ?>', name: 'fightvalue', width: '100'},
                        {display: '<?= translate('DBPLAYER_GUILD_ID') ?>', name: 'guildid', width: '100'},
                        {display: '<?= translate('DBPLAYER_HERO_ID') ?>', name: 'heroid', width: '100'},
                        {display: '<?= translate('DBPLAYER_QUALITY') ?>', name: 'quality', width: '100'},
                        {display: '<?= translate('DBPLAYER_VIP_LEVEL') ?>', name: 'viplevel', width: '100'},
                        {display: '<?= translate('DBPLAYER_LOGOFF_TIME') ?>', name: 'logofftime', width: '100'},
                        {display: '<?= translate('DBPLAYER_AWARDCENTER_ID') ?>', name: 'awardcenterid', width: '100'},
                        {display: '<?= translate('DBPLAYER_BATCAMP') ?>', name: 'batcamp', width: '100'},
                        {display: '<?= translate('DBPLAYER_LOGIN_DAY') ?>', name: 'totalonlinetime', width: '100'},
                        {display: '<?= translate('DBPLAYER_LOGIN_IP') ?>', name: 'loginip', width: '100'},
                        {display: '<?= translate('DBPLAYER_CHANNEL_ID') ?>', name: 'channelid', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_STATUELEVEL') ?>//', name: 'statuelevel', width: '100', hide: true},
//                        {display: '<?//= translate('DBPLAYER_MONEY') ?>//', name: 'money', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_GOLD') ?>//', name: 'gold', width: '100'},
//                   <!--     {display: '<?//= translate('DBPLAYER_BINDGOLD') ?>//', name: 'bindgold', width: '100'},  -->
//                        {display: '<?//= translate('DBPLAYER_EXP') ?>//', name: 'exp', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_PLAYERMAPID') ?>//', name: 'playermapid', width: '100',hide: true},
//                        {display: '<?//= translate('DBPLAYER_PLAYERPOSX') ?>//', name: 'playerposx', width: '100',hide: true},
//                        {display: '<?//= translate('DBPLAYER_PLAYERPOSY') ?>//', name: 'playerposy', width: '100',hide: true},
//                        {display: '<?//= translate('DBPLAYER_PLAYERVECX') ?>//', name: 'playervecx', width: '100',hide: true},
//                        {display: '<?//= translate('DBPLAYER_PLAYERVECY') ?>//', name: 'playervecy', width: '100',hide: true},
//                        {display: '<?//= translate('DBPLAYER_LAST_LOGOFF_TIME') ?>//', name: 'last_loginoff_time', width: '120',hide: true},
//                        {display: '<?//= translate('DBPLAYER_LAST_LOGIN_TIME') ?>//', name: 'last_loginon_time', width: '120',hide: true},
//                        {display: '<?//= translate('DBPLAYER_SYSTEM_MAIL_TIME') ?>//', name: 'system_mail_time', width: '120',hide: true,hide: true},
//                        {display: '<?//= translate('DBPLAYER_CREATTIME') ?>//', name: 'createtime', width: '120',hide: true},
//                        {display: '<?//= translate('DBPLAYER_PET') ?>//', name: 'pet', width: '100',hide: true},
//                        {display: '<?//= translate('DBPLAYER_PET_BAG_GRID') ?>//', name: 'pet_bag_grid', width: '100',hide: true},
//                        {display: '<?//= translate('DBPLAYER_GANG_RICH') ?>//', name: 'gang_rich', width: '80'},
//                        <!-- {display: '<?//= translate('DBPLAYER_RECHARGE') ?>//', name: 'oper_data', width: '80'}, -->
//                        {display: '<?//= translate('DBPLAYER_ISDELETE') ?>//', name: 'isdelete', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_SMELT') ?>//', name: 'smeltvalue', width: '100'},
//                        {display: '<?//= translate('DBPLAYER_ISROBOT') ?>//', name: 'isrobot', width: '100'},
                    ],
                    buttons: [
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
//                        {name: 'name', displayname: "<?= translate('DBPLAYER_ROLE_NAME') ?> <input type='text' style='padding:1px;' value='yy' size='12' placeholder='<?= translate('PLASE_WRITE') ?>' name='name' op='='/>", bclass: 'add'},
                    ],
                     searchitems: [{display: '<?= translate('DBPLAYER_NAME') ?>', name: 'name'},{display: '<?= translate('DBPLAYER_ROLEID') ?>', name: '_id'}],
                }));

            });
        </script>
    </body>
</html>